package com.whmall.service.crm.enumeration;

/**
 * 客户池操作类型
 * @author xiangzhou
 * @date 2019-8-9 18:03:02
 */
public enum CustomerPoolOperationTypeEnum {
    /** 进入客户池 */
    ENTER_CUSTOMER_POOL(1, "进入客户池"),
    /** 创建订单 */
    CREATE_ORDER(2, "创建订单"),
    /** 获取客户 */
    ACQUIRE_CUSTOMER(3, "获取客户"),
    /** 隐藏客户 */
    HIDE_CUSTOMER(4, "隐藏客户"),
    /** 恢复客户 */
    RESTORE_CUSTOMER(5, "恢复客户"),
    /** 释放客户 */
    RELEASE_CUSTOMER(6, "释放客户"),
    /** 无开发价值 */
    NO_DEVELOPMENT_VALUE(7, "无开发价值"),
    /** 恢复开发价值 */
    RESTORE_DEVELOPMENT_VALUE(8, "恢复开发价值"),
    /** 锁定客户 */
    LOCK_CUSTOMER(9, "锁定客户"),
    /** 解锁客户 */
    UNLOCK_CUSTOMER(10, "解锁客户"),
    /** 分配客户 */
    ASSIGN_CUSTOMER(11, "分配客户")
    ;

    private final int value;
    private final String name;

    CustomerPoolOperationTypeEnum(int value, String name) {
        this.value = value;
        this.name = name;
    }

    public static CustomerPoolOperationTypeEnum fromValue(int value) {
        for (CustomerPoolOperationTypeEnum e : values()) {
            if (e.getValue() == value) {
                return e;
            }
        }
        return null;
    }

    public int getValue() {
        return value;
    }

    public String getName() {
        return name;
    }

}

